/*
 * AnnotatedRange.java
 * 
 * Created on 7 มิ.ย. 2550, 17:00:22
 * 
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package net.siit.datatype;

/**
 *
 * @param AnnotationType 
 * @author arthit
 */
public class AnnotatedRange<AnnotationType> extends Range {
    private AnnotationType label;

    public AnnotatedRange() {
        super();
        this.label = null;
    }
    
    public AnnotatedRange(int start, int end) {
        super(start, end);
    }
    
    public AnnotatedRange(int start, int end, AnnotationType label) {
        super(start, end);
        this.label = label;
    }
    
    public AnnotationType getLabel() {
        return label;
    }
    
    public void setLabel(AnnotationType label) {
        this.label = label;
    }
    
    public String toString() {
        return ("[" + this.getStart() + "," + this.getEnd() + "]:" + label);
    }
}
